/**
* @Title: Student.java
* @Package com.model
* @Description: TODO(用一句话描述该文件做什么)
* @author antch,861710865@qq.com
* @date 2017年6月30日 上午10:19:04
* @version V1.0
*/


package com.model;

import java.util.HashSet;
import java.util.Set;

/**
* @ClassName: Student
* @Description: TODO(这里用一句话描述这个类的作用)
* @author antch,861710865@qq.com
* @date 2017年6月30日 上午10:19:04
*
*/

public class Student {
	private String id;

	private String name;

	private int age;


	private Set<Teacher> teachers = new HashSet<Teacher>();


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getAge() {
		return age;
	}


	public void setAge(int age) {
		this.age = age;
	}


	public Set<Teacher> getTeachers() {
		return teachers;
	}


	public void setTeachers(Set<Teacher> teachers) {
		this.teachers = teachers;
	}


	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", age=" + age + ", teachers个数：：" + teachers.size() + "]";
	}


}
